import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import(/* webpackChunkName: "login" */ './views/Home.vue')
    },
    {
      path: '/user',
      name: 'user',
      component: () => import(/* webpackChunkName: "login" */ './views/user.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import(/* webpackChunkName: "login" */ './views/login.vue')
    },
    {
      path: '/reg',
      name: 'reg',
      component: () => import(/* webpackChunkName: "reg" */ './views/reg.vue')
    },
    {
      path: '/pay',
      name: 'pay',
      component: () => import(/* webpackChunkName: "reg" */ './views/pay.vue')
    },
    {
      path: '/order-list',
      name: 'orderList',
      component: () => import(/* webpackChunkName: "reg" */ './views/order-list.vue')
    },
    {
      path: '/content',
      name: 'content',
      component: () => import(/* webpackChunkName: "reg" */ './views/content.vue')
    },
    {
      path: '/jisuan',
      name: 'jisuan',
      component: () => import(/* webpackChunkName: "reg" */ './views/jisuan.vue')
    },
    {
      path: '/jiaofei',
      name: 'jiaofei',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/jiaofei')
    }
  ]
})
